package com.example.charge.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.charge.R
import com.example.charge.entity.ChargeEntity

class ChargeAdapter : BaseQuickAdapter<ChargeEntity,BaseViewHolder>(R.layout.item_charge_list) {
    override fun convert(holder: BaseViewHolder, item: ChargeEntity) {
        holder.setText(R.id.tv_project_name,"项目名称/${item.chargeType}")
        holder.setText(R.id.tv_price,"￥ ${item.chargeAmount}")
        holder.setText(R.id.tv_owner_name,"户主姓名: ${item.payerName}")
        holder.setText(R.id.tv_phone,"联系电话: ${item.contactNumber}")
    }

}